package com.chengqs.jvm.t2;

import java.io.IOException;

/*
查看虚拟机运行参数
"C:\Program Files\Java\jdk1.8.0_91\bin\java" -XX:+PrintFlagsFinal -version | findstr "GC"
 */
public class Demo2_8 {
    public static void main(String[] args) throws IOException {
        Teacher t = new Teacher();
        t.id = 1;
        t.name = "chengqs";
        System.in.read();
    }

    public static class Teacher{
        int id;
        String name;
        Student stu = new Student();
    }
    public static class Student{
        int id;
        String name;

    }
}
